package com.augrain.microframework.limit.breaker;

import com.augrain.microframework.limit.exception.RequestExceedLimitException;
import lombok.extern.slf4j.Slf4j;

/**
 * @author biaoy
 * @since 2020/12/23
 */
@Slf4j
public class DefaultCircuitBreaker implements CircuitBreaker {
    @Override
    public Object handle() {
        if (log.isDebugEnabled()) {
            log.debug("[限流]请求速度超过限额");
        }
        throw new RequestExceedLimitException("请求速度超过限额");
    }
}
